import React, {Component} from 'react'
import {Link} from 'react-router-dom'


export default class HeaderView extends Component {
	constructor(){
		super();
		
	}
	render(){
		return(
			<header>
				<div class="header-left left" onClick={this.showMenu.bind(this)}>
					<i class="iconfont icon-menu"></i>
					<span>{this.props.title}</span>
				</div>
				<div class="header-right right">
					<div class="header-address">
						<span>深圳</span>
						<i class="iconfont icon-arrow-down"></i>
					</div>
					<Link to="/me"><i class="iconfont icon-person"></i></Link>
				</div>
			</header>
		)
	}
	showMenu(){
		this.props.showMenu();
	}
}
